About the Demo

Note: This demo is for the Delphi Win32 and .NET personalities.

Borland Delphi 2006 introduces a new control to the component palette. Available on the Additional tab by default the component is called TFlowPanel.

This component lays out any controls parented on it according to the FlowStyle property.

There are 8 possible flow styles and this application lets you easily experiment with using all of them.

  1. fsLeftRightTopBottom
  2. fsRightLeftTopBottom
  3. fsLeftRightBottomTop
  4. fsRightLeftBottomTop
  5. fsTopBottomLeftRight
  6. fsBottomTopLeftRight
  7. fsTopBottomRightLeft
  8. fsBottomTopRightLeft

This demo only really touches the surface for how useful the TFlowPanel could be in future applications.

Setup Information

  1. Win32: Open the FlowPanelDemo.bdsproj project

    VCL.NET: Open the FlowPanelDemoNET.bdsproj

  2. Compile the project and run

Running the Demo

The demo shows how the TFlowPanel component lays out 60 edit controls when the edit controls are created with the TFlowLayout as a parent.

To change the flow style for the TFlowPanel select a flow style from the combobox. The controls are recreated and laid out according to the selected flow style.

Look at the CreateControls procedure to see how the controls are created. Note how the top and left positions of the controls are not set when created.
 
Screenshots